<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="/fisiosoftJDV/faces/jsfcrud.css" />
        <title>Crear Fisioterapeuta</title>
    </head>
    <body><body style="background-color:#FFFFFF ">

        <center><h2>Ingresar nuevo fisioterapeuta</h2></center>
        <form:form method="post" commandName="addFisio">
          <table align="center" width="60%" bgcolor="dfecf1" border="0" cellspacing="0" cellpadding="5">
            <tr>
                <td align="right" width="30%">Nombre*:</td>
                <td width="20%">
                  <form:input path="nombre"/>
                </td>
                <td>
                  <font color="red"><form:errors path="nombre"/></font>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Apellido:</td>
                <td width="20%">
                  <form:input path="apellido"/>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Cedula*:</td>
                <td width="20%">
                  <form:input path="cedula"/>
                </td>
                <td>
                  <font color="red"><form:errors path="cedula"/></font>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Fecha de Nacimiento:</td>
                <td width="40%">
                    Dia: <form:select path="fechaNacimientoDia">
                        <c:forEach items="${dias}" var="di">
                            <form:option value="${di}"> <c:out value="${di}"/></form:option>
                        </c:forEach>
                    </form:select>
                    Mes: <form:select path="fechaNacimientoMes">
                        <c:forEach items="${meses}" var="me">
                            <form:option value="${me}"> <c:out value="${me}"/></form:option>
                        </c:forEach>
                    </form:select>
                    A&ntilde;o: <form:select path="fechaNacimientoAno">
                        <c:forEach items="${anos}" var="an">
                            <form:option value="${an}"> <c:out value="${an}"/></form:option>
                        </c:forEach>
                    </form:select>
                </td>
                <td>
                  <font color="red"><form:errors path="fechaNacimiento"/></font>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Telefono:</td>
                <td width="20%">
                  <form:input path="telefono"/>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Direccion:</td>
                <td width="20%">
                  <form:input path="direccion"/>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Sexo:</td>
                <td width="20%">
                  <form:select path="sexo">
                        <form:option value="Masculino"> <c:out value="Masculino"/></form:option>
                        <form:option value="Femenino"> <c:out value="Femenino"/></form:option>
                  </form:select>
                </td>
            </tr>
            <tr>
                <td align="right" width="20%"><input type="submit" align="center" value="Guardar"></td>
            </tr>
          </table>
          <br>
          <h6>Los campos con (*) son obligatorios.</h6>          
        </form:form>
    </body>
</html>
